var React = require('react');
var Checkbox = React.createClass({
    getInitialState: function () {
        return {
            checked: false
        }
    },
    change: function (e) {
        this.setState({
            checked: e.target.checked
        });
    },
    render: function () {
        return <input type="checkbox" onChange={this.change} checked={this.state.checked}/>
    }
});
module.exports = Checkbox;